package com.demo.http;

import java.io.Serializable;

public class Message implements Serializable {

    private static final long serialVersionUID = 7393588491232719243L;

    public static final int MT_SUBMIT_JOB = 1;
    public static final int MT_KILL_JOB = 2;
    public static final int MT_JOB_RESULT = 3;
    //	public static final int MT_QUERY_JOB = 4;
    public static final int MT_EXECUTOR_IDENT = 5;

    public static final int MT_STATUS_RESP = 6;
    public static final int MT_QUERY_RESP = 7;
    public static final int MT_SUBMIT_RESP = 8;

    public static final int STATUS_OK = 1;
    public static final int STATUS_FAIL = 2;
    public static final int STATUS_NO_JOB = 3;

    private int type;

    private Object info;

    public Message() {
    }

    public Message(int type, Object info) {
        this.type = type;
        this.info = info;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Object getInfo() {
        return info;
    }

    public void setInfo(Object info) {
        this.info = info;
    }
}

